#ifndef __UTILS_H__
#define __UTILS_H__

#include <glad/glad.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>

#include <vector>
#include <map>
#include <string>
#include <fstream>
#include <sstream>

#include "stb_image.h"

using namespace std;

void setUniforn1i(unsigned int program, char const *name, int value);

void setUniforn1f(unsigned int program, char const *name, float value1);

void setUniforn3f(unsigned int program, char const *name, float value1, float value2, float value3);

void setUniforn3vec(unsigned int program, char const *name, glm::vec3 value);

void setUniforn4mat(unsigned int program, char const *name, glm::mat4 value);

void loadimg(unsigned int *texture, char const *path);

void dir(char const *path, char *pathName);

int charNum(char const *str, char characher);

string loadFile(string path);

map<string, vector<string> > getPropertices(string src);

vector<string> slipt(string src, string symble);
#endif
